import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import Swal from 'sweetalert2'
import Wx from './utils/jweixin-1.6.0'

Vue.prototype.$wx = Wx
Vue.config.productionTip = false
Vue.prototype.$http = axios
axios.defaults.baseURL = '/api'
Vue.prototype.$swal = Swal

const echarts = require('echarts/lib/echarts')
require('echarts/lib/chart/bar')
require('echarts/lib/chart/line')
require('echarts/lib/chart/pie')
require('echarts/lib/component/tooltip')
require('echarts/lib/component/title')
require('echarts/lib/component/legend')
Vue.prototype.$echarts = echarts

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

require('./assets/css/app.css')
